package com.codeforces;

import java.util.Scanner;

public class _4A {

	static int w;
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		w = scanner.nextInt();
		if (w % 2 == 0 && w > 2) {
			System.out.println("YES");
		}
		else {
			System.out.println("NO");
		}
	}

}
